package com.personel;

public class PersonelIslemleri {
	Personel PersonelOlustur(String ad, String soyad, String adres, String tel) {
		Personel personel = new Personel(ad, soyad, adres, tel);
		System.out.println(personel.getAd() + " olustu");
		return personel;
	}

	Personel PersonelSil(Personel personel) {
		System.out.println(personel.getAd() + " silindi");
		personel = null;
		return personel;
	}

	void PersonelGuncelle(Personel personel, String ad, String soyad,
			String adres, String tel) {
		System.out.println(personel.getAd() + " guncellendi");
		personel.setAd(ad);
		personel.setSoyad(soyad);
		personel.setAdres(adres);
		personel.setTel(tel);
	}

	void PersonelGoruntule(Personel personel) {
		if (personel != null) {
			System.out.println(personel.getAd());
			System.out.println(personel.getSoyad());
			System.out.println(personel.getAdres());
			System.out.println(personel.getTel());
		}
	}

}
